package com.yazdankhah.beans;

import java.io.Serializable;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;

/**
 *
 * @author ahmad
 */
@Named
@SessionScoped
public class User implements Serializable {

  private long userId = 100;

  private String firstName = "Ahmad";

  private String lastName = "Yazdan";

  private String email = "ahmad.yazdan@gmail.com";
  
  private static final long serialVersionUID = 1L;


  public User() {
  }


  public User(long userId) {
    this.userId = userId;
  }
  
  
  public long getUserId() {
    return userId;
  }


  public void setUserId(long userId) {
    this.userId = userId;
  }


  public String getFirstName() {
    return firstName;
  }


  public void setFirstName(String firstName) {
    this.firstName = firstName;
  }


  public String getLastName() {
    return lastName;
  }


  public void setLastName(String lastName) {
    this.lastName = lastName;
  }


  public String getEmail() {
    return email;
  }


  public void setEmail(String email) {
    this.email = email;
  }



//  @Override
//  public int hashCode() {
//    int hash = 0;
//    hash += (userId != null ? userId.hashCode() : 0);
//    return hash;
//  }
//
//
//  @Override
//  public boolean equals(Object object) {
//    // TODO: Warning - this method won't work in the case the id fields are not set
//    if (!(object instanceof User)) {
//      return false;
//    }
//    User other = (User) object;
//    if ((this.userId == null && other.userId != null) ||
//        (this.userId != null && !this.userId.equals(other.userId))) {
//      return false;
//    }
//    return true;
//  }


  @Override
  public String toString() {
    return "com.yazdankhah.beans.User[ userId=" + userId + " ]";
  }
  
} //class
